/****** Object:  Table [dbo].[ArchitecturalWorks]    Script Date: 12/26/2013 17:37:37 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[BuilderWorks](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[BuilderId] [int] NOT NULL,
	[Name] [varchar](150) NULL,
	[DescriptionLine] [varchar](max) NULL,
	[City] [varchar](100) NULL,
	[State] [varchar](100) NULL,
	[Year] [varchar](100) NULL,
	[ProjectImage] [varchar](100) NULL,
 CONSTRAINT [PK_BuilderWorks] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[BuilderWorks]  WITH CHECK ADD  CONSTRAINT [FK_BuilderWorks_Builders] FOREIGN KEY([BuilderId])
REFERENCES [dbo].[Builders] ([Id])
GO

ALTER TABLE [dbo].[BuilderWorks] CHECK CONSTRAINT [FK_BuilderWorks_Builders]
GO


